package org.sucri.servlet.controller;

import org.directwebremoting.annotations.DataTransferObject;
import org.directwebremoting.annotations.RemoteProperty;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Dec 30, 2007
 * Time: 11:49:47 PM
 * To change this template use File | Settings | File Templates.
 */
@DataTransferObject
public class Payload<T>
{
  // 	types : {change: 'u', add: 'c', remove: 'd'},
  private String mType;
  private T mData;

  public Payload() { super(); }
  public Payload(String t, T s) { mType = t; mData = s; }

  @RemoteProperty
  public String getType() { return mType; }
  @RemoteProperty
  public T getData() { return mData; }

  @RemoteProperty
  public void setType(String s) { mType = s; }
  @RemoteProperty
  public void setData(T s) { mData = s; }
}
